<?php
/**
 *	Data Model of Attachments.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
/**
 *	Data Model of Attachments.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
final class Attachment extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$attachmentId		ID of Attachment
	 *	@return		void
	 */
	public function __construct( $attachmentId = NULL )
	{
		$tableName	= "attachments";
		$fields	= array(
			"attach_id",
			"bug_id",
			"title",
			"description",
			"filename",
			);
		$primaryKey	= "attach_id";
		$indices	= array( "bug_id" );
		parent::__construct( $tableName, $fields, $primaryKey, $attachmentId );
		$this->setIndices( $indices );
	}
}
?>